package com.feign.main;

import com.feign.retry.FeignRetryer;
import feign.Request;
import feign.Retryer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.core.env.ConfigurableEnvironment;

@Import(FeignRetryer.class)
@ComponentScan(basePackages = "com.feign.controller")
@EnableFeignClients(basePackages = {"com.feign.service"})
@EnableDiscoveryClient
@SpringBootApplication
public class  FeignConsumerApplication {

    public static void main(String[] args){
        SpringApplication.run(FeignConsumerApplication.class,args);
    }

}
